﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AWP_Vl_3_delegate_event
{
    class Program
    {
        static void Main(string[] args)
        {
            DelegationExample de = new DelegationExample();

            de.myEvent += german;
            de.myEvent += english;

            de.startEvent();

            Console.ReadKey();
        }

        public static void german(int x)
        {
            Console.WriteLine("Die Zahl ist eine " + x + "!");
        }

        public static void english(int x)
        {
            Console.WriteLine("The Number is a " + x + "!");
        }
    }
}
